from __future__ import unicode_literals

from django.conf import settings
from django.core.mail import EmailMultiAlternatives
# class EmailHandler:
#     def __init__(self,to,code):
#
#
#         subject = '您正在修改荏苒资讯的密码'
#
#         text_content = '您正在修改荏苒资讯的密码,验证码为%s,这是一封重要的邮件.'
#
#     # html_content = '<p>这是一封<strong>重要的</strong>邮件.</p>'
#     def send_email(self):
#
#
#         msg = EmailMultiAlternatives(self.subject, self.text_content, settings., [to @ youemail.com])
#
#         msg.attach_alternative(html_content, "text/html")
#
#     msg.send()